package com.gupao.normal.user.userserviceprovider.service;

import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.rpc.RpcContext;
import org.gupao.normal.user.IHelloService;
import org.gupao.normal.user.Person;

/**
 * @Author: Mic
 * @公众号： 跟着Mic学架构
 * @官网： https://ke.gupaoedu.cn
 * @Org: 咕泡教育
 **/
@DubboService(protocol = {"dubbo","tri"})
public class HelloService implements IHelloService {


    @Override
    public String say(String msg) {
        String property=RpcContext.getServerAttachment().getAttachment("p");
        System.out.println("客户端传递的参数："+property);
        return "Hello , 链路传参："+msg;
    }


}
